package week10;
import java.util.Scanner;
class Account{
	private int balance;
	
   public Account(int money) {
	   this.balance=money;
   }
     public synchronized void deposit(int money){
		    
			balance=balance+money;
		    
	
	}
     public synchronized void withdraw(int money){
 	
 		balance=balance-money;
 	    
 	}

	public int getBalance() {
		return balance;
	}


	public void setBalance(int balance) {
		this.balance = balance;
	}
}
public class ptahanshu0402 {

}
